package org.jeecg.modules.demo.mes.service.impl;

import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.modules.demo.mes.entity.MesMaterialConfigure;
import org.jeecg.modules.demo.mes.mapper.MesMaterialConfigureMapper;
import org.jeecg.modules.demo.mes.service.IMesMaterialConfigureService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description: 物料配置
 * @Author: jeecg-boot
 * @Date:   2022-10-27
 * @Version: V1.0
 */
@Service
public class MesMaterialConfigureServiceImpl extends ServiceImpl<MesMaterialConfigureMapper, MesMaterialConfigure> implements IMesMaterialConfigureService {

    @Override
    public List<MesMaterialConfigure> queryMaterialConfiguresByMaterialCode(String materialCode) throws JeecgBootException {
        final Map<String,Object> cxMap = new HashMap<>();
        cxMap.put("materialCode",materialCode);
        return baseMapper.queryMaterialConfiguresSelective(cxMap);
    }
}
